package config;

import java.time.Duration;

public class ServerConfig {
    private ServerConfig() {
        throw new AssertionError();
    }

    public static final int DEFAULT_SERVER_PORT = 7554;
    public static final int SOCKET_TIMEOUT_MILLIS = 10000;

    public static final int MAXIMUM_POOL_SIZE = (int) Math.ceil(1.5 * Runtime.getRuntime().availableProcessors());
    public static final int MINIMUM_POOL_SIZE = (int) Math.ceil((0.2 * MAXIMUM_POOL_SIZE));
    public static final Duration THREAD_KEEP_ALIVE_TIME = Duration.ofSeconds(10);
    public static final int LINKED_BLOCKING_QUEUE_CAPACITY = Integer.MAX_VALUE;
}
